import request from '@/config/request.js';

// 扫描物料/批次号获得容器类型和入库单相关的Info
export const getMoreInfoAPI = (params) => request.post('/api/containerDetail/getMaterialRelaxInfo', params)
 
// 扫描容器获得容器内部的详情
export const getDetailAPI = (params) => request.post('/api/containerDetail/getContainerInfo', params)

// 物料绑定容器
export const bindAPI = (params) => request.post('/api/containerDetail/bindContainer', params)

// 检查输入数量是否正确
export const checkDataAPI = (params) => request.post('/api/inboundOrderDetail/check', params)

// 紧急发料
export const emergencyAPI = (params) => request.post('/api/inboundMission/inboundHurryUse', params)

// 满车
export const fullLoadAPI = (params) => request.post(`/api/inboundOrder/startSonInboundOrder/${params}`, params)

// 满车的物料分拣到容器确认
export const confirmSortAPI = (params) => request.post('/api/containerDetail/confirmBindContainer', params)

// 需要使用几个空托盘
export const getNullPalletAPI = (params) => request.post('/api/containerDetail/getNullPallet', params)

// 使用空托盘
export const useNullPalletAPI = (params) => request.post(`/api/containerDetail/changePallet/${params}`, params)

// 混箱绑定
export const mixBindAPI = (params) => request.post('/api/containerDetail/mixbindContainer', params)

// 物料入虚拟仓
export const vmInventoryAPI = (params) => request.post('/api/vmInventory/vmInventoryIn', params)
